<template>
  <CourseHome ref="homeView"></CourseHome>
</template>

<script>
import {mapGetters, mapActions} from 'vuex'
import CourseHome from "../home/CourseHome.vue";
import shareUtils from "../../libs/shareUtils";

export default {
  components: {
    CourseHome,
  },
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['appType'])
  },
  onShow() {
    console.log('home show', this.$refs)
    if (this.$refs.homeView && this.$refs.homeView.pageOnShow) {
      this.$refs.homeView.pageOnShow()
    }
  },
  onShareAppMessage(args) {
    return shareUtils.getPageShare(args)
  },
  methods: {}
}
</script>

<style lang="scss">
page {
  height: 100%;
  background-color: #f8f8f8;
}
</style>
